<template>
  <div>
    <p class='travel-title'>周末游</p>
    <ul>
      <li class='weektravel'  v-for='item of weekendList' :key='item.id'>
        <div class='img-wrapper'>
          <img class='img-pic' :src="item.imgUrl">
        </div>
        <div class='travel-infor'>
          <p class='travel-infor-title'>{{item.title}}</p>
          <p class='travel-infor-content'>{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name:'homeweekend',
  props:{
    weekendList:Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixin.styl'
.travel-title 
  line-height:.8rem 
  background:#eee
  text-indent:.2rem 
.img-wrapper
  overflow:hidden 
  height:0
  padding-bottom:37.09%
  .img-pic
    width:100%
.travel-infor
  padding:.1rem 
  .travel-infor-title
    line-height:.54rem 
    font-size:.32rem
  .travel-infor-content
    line-height:.4rem 
    color:#ccc
    ellipsis()
</style>
